package com.ruoyi.system.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.service.ISyncJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
@DataSource(value = DataSourceType.SLAVE)
public class SyncJobServiceImpl implements ISyncJobService {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public void syncJob() {
        jdbcTemplate.queryForList("select * from b_thing where sync_status = 0");
    }

}
